package dao;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;

public class PMF {

	
	 private static final PersistenceManagerFactory pmfInstance =
	        JDOHelper.getPersistenceManagerFactory("transactions-optional");

	 
	 
	 
	    private PMF() {}

	    private static PersistenceManagerFactory getPMF() {
	        return pmfInstance;
	    }
	    
	    public static PersistenceManager getPM(){
	    	return getPMF().getPersistenceManager();
	    }
	    
}
